package com.cskaoyan.market.config;

import com.cskaoyan.market.bo.HandleOption;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@Data
public class RelationMapping {

    public Map<Short, String> STATUS_MAP = new HashMap<>();
    public Map<Short, HandleOption> OPTION_MAP = new HashMap<>();
    public Map<String, String> SHIP_MAP = new HashMap<>();

    {
        STATUS_MAP.put((short)101, "未付款");
        STATUS_MAP.put((short)102, "用户取消");
        STATUS_MAP.put((short)103, "系统取消");
        STATUS_MAP.put((short)201, "已付款");
        STATUS_MAP.put((short)202, "申请退款中");
        STATUS_MAP.put((short)203, "已退款");
        STATUS_MAP.put((short)301, "已发货");
        STATUS_MAP.put((short)401, "用户收货");
        STATUS_MAP.put((short)402, "系统收货");

        OPTION_MAP.put((short)101, new HandleOption(true, false, true, false, false, false, false, false));
        OPTION_MAP.put((short)201, new HandleOption(false, false, false, false, false, true, false, false));
        OPTION_MAP.put((short)301, new HandleOption(false, false, false, false, true, false, false, false));
        OPTION_MAP.put((short)401, new HandleOption(false, true, false, true, false, false, true, true));

        SHIP_MAP.put("ZTO", "中通快递");
        SHIP_MAP.put("YTO", "圆通速递");
        SHIP_MAP.put("YD", "韵达速递");
        SHIP_MAP.put("YZPY", "邮政快递包裹");
        SHIP_MAP.put("EMS", "EMS");
        SHIP_MAP.put("DBL", "德邦快递");
        SHIP_MAP.put("FAST", "快捷快递");
        SHIP_MAP.put("ZJS", "宅急送");
        SHIP_MAP.put("TNT", "TNT快递");
        SHIP_MAP.put("UPS", "UPS");
        SHIP_MAP.put("DHL", "DHL");
        SHIP_MAP.put("FEDEX", "FEDEX联邦(国内件)");
        SHIP_MAP.put("FEDEX_GJ", "FEDEX联邦(国际件)");
    }
}
